package com.xwx.config;
import com.jfinal.kit.Ret;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.jfinal.plugin.druid.DruidPlugin;
import com.xwx.common.config.AppConfigDB;
import com.xwx.common.model.DepExtModel;
import com.xwx.common.model.DepModel;

/***
 * 
* @Description:测试必要  
* @author:Dream QQ:68697015
* @time:2015年8月7日 上午11:15:04
 */
public class AppTestConfig {
	public static void run(){
		DruidPlugin dp = new DruidPlugin("jdbc:mysql://localhost:3306/GBDCode_web?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull", "root", "xwx");
		ActiveRecordPlugin arp = new ActiveRecordPlugin(dp);
		arp.addMapping(AppConfigDB.DEP, DepModel.class);
		arp.addMapping(AppConfigDB.DEP_EXT, DepExtModel.class);
		//arp.setDevMode(true);
		arp.setShowSql(true);
		dp.start();
		arp.start();
		
	}
}
